load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "br_rawkv_lib",
    srcs = ["client.go"],
    importpath = "github.com/pingcap/tidb/br/tests/br_rawkv",
    visibility = ["//visibility:private"],
    deps = [
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_log//:log",
        "@com_github_tikv_client_go_v2//config",
        "@com_github_tikv_client_go_v2//rawkv",
        "@org_uber_go_zap//:zap",
    ],
)

go_binary(
    name = "br_rawkv",
    embed = [":br_rawkv_lib"],
    visibility = ["//visibility:public"],
)
